﻿using System;

namespace BSharp.Compiler.Emit
{
	public class LoadWord : IntermediateInstruction
	{
		public int Destination;
		public int Source;

		public LoadWord (int source, int dest)
		{
			Destination = source;
			Source = dest;
		}

		public override void Visit (IntermediateCompiler compiler)
		{
			compiler.Compile (this);
		}

		public override string ToString ()
		{
			return String.Format ("LOAD_WORD r{0}, r{1}", Destination, Source);
		}
	}
}

